package com.atguigu.springcloud;

import com.atguigu.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
//手写负载均衡算法，则注释掉
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MySelfRule.class) //修改默认负载均衡策略轮询为随机
public class OrderMain80 {
    /*先启动7001
    *再启动8001
    * 然后启动80
    * */
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class,args);
    }
}
